/**
 * 
 */
package info.pablo.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Main App
 * @author Pablo_guerrero
 */
public class Main {
 
    public static void main (String args[]) {
           ApplicationContext context = 
        		   new ClassPathXmlApplicationContext("javamon.xml");
           Combat combat = 
        		   (Combat) context.getBean("combat");

           
           combat.combat();
        
           System.out.println("And the winner is: " + combat.outcome().getName());
        
           System.out.println("Thanks for playing javamon");
    }
}
